<?php

include_once dirname(__FILE__) . '/../dao/PeerReviewDAO.php';
include_once dirname(__FILE__) . '/../dao/ConexionBD.php';

$conexionBD = new ConexionBD();
$peerReviewDAO = new PeerReviewDAO($conexionBD);

$arrayPeerReview = array();
$arrayPeerReview = $peerReviewDAO->llenarListPeerReviews();

session_start();
$_SESSION[Constantes::SESSION_VAR_CONEXION_BD] = serialize($conexionBD);
$_SESSION[Constantes::SESSION_VAR_LISTA_PR] = $arrayPeerReview;
session_write_close();

header('Location: ../seleccionarPeerReview.php?count='.count($arrayPeerReview));
exit();
